package cn.tonyandmoney.voicenotes.ui.component

import android.view.View
import android.view.ViewManager
import android.widget.LinearLayout
import cn.tonyandmoney.voicenotes.R
import org.jetbrains.anko.dip
import org.jetbrains.anko.matchParent
import org.jetbrains.anko.textView


fun ViewManager.lineDivider(): View {
    return textView {
        setBackgroundResource(R.color.line_and_outline_grey)
        layoutParams = LinearLayout.LayoutParams(matchParent, dip(1))
    }
}